package com.cugmarket.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cugmarket.entity.ProductInfo;
import com.cugmarket.vo.PageVO;
import com.cugmarket.vo.ProductInfoVO;
import org.springframework.context.annotation.Bean;

import java.io.IOException;
import java.util.List;


public interface ProductInfoService extends IService<ProductInfo> {

    PageVO selectList(Integer currentPage, Integer pageSize);

    PageVO selectListByType(Integer currentPage, Integer pageSize, String typeId);

    PageVO selectListByAdCode(Integer currentPage, Integer pageSize, String adCode);

    PageVO selectListByUserIdPublish(Integer currentPage, Integer pageSize, String userId);

    PageVO selectListByUserIdSold(Integer currentPage, Integer pageSize, String userId);

    PageVO selectListByUserIdCollect(Integer currentPage, Integer pageSize, String userId);

    ProductInfoVO getByProductId(String id);

    PageVO getProductByCondition(Integer currentPage, Integer pageSize, String condition) throws IOException;
}
